// 所有请求的方法
import axios from 'axios'
import base from './base'
const api = {
  //  病毒信息获取
  getCovInfo() {
    return axios.get(base.host + base.covInfo)
  },
  gettest() {
    return axios.get(base.test)
  },
  getChinaData() {
    return axios.get(base.baseUrl + base.chinaMap, {
      headers: {
        Authorization: 'APPCODE faa4869a7cfd4fad814a4d1a05749da0',
      },
    })
  },
  // 轮播图
  getSwiper() {
    return axios.get(base.swiperBanner)
  },
  // 出行城市id
  getTravel() {
    return axios.get(base.travel)
  },
  // 疫情的出行城市
  getTravelQuery(params) {
    return axios.get(base.travelQuery, {
      params,
    })
  },
  // 城市选着
  getCity() {
    return axios.get(base.getcity)
  },
  getxinglang() {
    return axios.get('api/g2/getOnsInfo?name=disease_foreign')
  },
  // 获取城市风险地区
  getRiskCity() {
    return axios.get(base.riskCity)
  },
  getTest() {
    return axios.get(base.api163)
  },
}
export default api
